package com.itheima.bean;

public class User {
    //用户实体类

    private Integer id;
    private String username;
    private String password;
    private Double money;

    public User() {
    }

    public User(Integer id, String name, String passWord, Double money) {
        this.id = id;
        this.username = name;
        this.password = passWord;
        this.money = money;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return passWord
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return money
     */
    public Double getMoney() {
        return money;
    }

    /**
     * 设置
     * @param money
     */
    public void setMoney(Double money) {
        this.money = money;
    }

    public String toString() {
        return "User{id = " + id + ", name = " + username + ", passWord = " + password + ", money = " + money + "}";
    }
}
